package com.weixin.entity;

import java.util.Date;

public class Purchase {
	//表purchase_tb中字段
	private int purchase_id;
	private int goods_id;
	private int number;
	private int purchase_people_id;
	private int supplier_id;
	private Date purchase_time;
	private int inspect;
	private int storehouse_id;
	private String remark;

	//多表查询相关字段
	private String goods_name;
	private double price;
	private String unit;
	private String purchase_name;
	private String supplier_;
	private String storehouse_name;
	
	public String getGoods_name(){
		return goods_name;
	}
	public void setGoods_name(String goods_name) {
		this.goods_name = goods_name;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getPurchase_name() {
		return purchase_name;
	}
	public void setPurchase_name(String purchase_name) {
		this.purchase_name = purchase_name;
	}
	public String getSupplier_() {
		return supplier_;
	}
	public void setSupplier_(String supplier_) {
		this.supplier_ = supplier_;
	}
	public String getStorehouse_name() {
		return storehouse_name;
	}
	public void setStorehouse_name(String storehouse_name) {
		this.storehouse_name = storehouse_name;
	}
	public Purchase(int purchase_id, int goods_id, int number, int purchase_people_id, int supplier_id,
			Date purchase_time, int inspect, int storehouse_id, String remark, String goods_name, double price,
			String unit, String purchase_name, String supplier_, String storehouse_name) {
		super();
		this.purchase_id = purchase_id;
		this.goods_id = goods_id;
		this.number = number;
		this.purchase_people_id = purchase_people_id;
		this.supplier_id = supplier_id;
		this.purchase_time = purchase_time;
		this.inspect = inspect;
		this.storehouse_id = storehouse_id;
		this.remark = remark;
		this.goods_name = goods_name;
		this.price = price;
		this.unit = unit;
		this.purchase_name = purchase_name;
		this.supplier_ = supplier_;
		this.storehouse_name = storehouse_name;
	}
	
	public Purchase() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Purchase(int purchase_id, int goods_id, int number, int purchase_people_id, int supplier_id,
			Date purchase_time, int inspect, int storehouse_id, String remark) {
		super();
		this.purchase_id = purchase_id;
		this.goods_id = goods_id;
		this.number = number;
		this.purchase_people_id = purchase_people_id;
		this.supplier_id = supplier_id;
		this.purchase_time = purchase_time;
		this.inspect = inspect;
		this.storehouse_id = storehouse_id;
		this.remark = remark;
	}
	public int getPurchase_id() {
		return purchase_id;
	}
	public void setPurchase_id(int purchase_id) {
		this.purchase_id = purchase_id;
	}
	public int getGoods_id() {
		return goods_id;
	}
	public void setGoods_id(int goods_id) {
		this.goods_id = goods_id;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public int getPurchase_people_id() {
		return purchase_people_id;
	}
	public void setPurchase_people_id(int purchase_people_id) {
		this.purchase_people_id = purchase_people_id;
	}
	public int getSupplier_id() {
		return supplier_id;
	}
	public void setSupplier_id(int supplier_id) {
		this.supplier_id = supplier_id;
	}
	public Date getPurchase_time() {
		return purchase_time;
	}
	public void setPurchase_time(Date purchase_time) {
		this.purchase_time = purchase_time;
	}
	public int getInspect() {
		return inspect;
	}
	public void setInspect(int inspect) {
		this.inspect = inspect;
	}
	public int getStorehouse_id() {
		return storehouse_id;
	}
	public void setStorehouse_id(int storehouse_id) {
		this.storehouse_id = storehouse_id;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Override
	public String toString() {
		return "Purchase [purchase_id=" + purchase_id + ", goods_id=" + goods_id + ", number=" + number
				+ ", purchase_people_id=" + purchase_people_id + ", supplier_id=" + supplier_id + ", purchase_time="
				+ purchase_time + ", inspect=" + inspect + ", storehouse_id=" + storehouse_id + ", remark=" + remark
				+ ", goods_name=" + goods_name + ", price=" + price + ", unit=" + unit + ", purchase_name="
				+ purchase_name + ", supplier_=" + supplier_ + ", storehouse_name=" + storehouse_name + "]";
	}

	
}
